package org.teremail.smtp.commands;

import java.util.List;

import org.teremail.smtp.SMTPCommandFactory;
import org.teremail.smtp.SMTPSession;

/**
 * The NOOP command, does nothing.
 * 
 * @author Michael Barker.
 *
 */
public class NOOPCommand extends SMTPCommand {

    public NOOPCommand() {
        super("NOOP", EMPTY);
    }
    
    @Override
    public void process(SMTPSession session) {
        session.write(MSG_OK);
    }

    public static final SMTPCommandFactory FACTORY = new SMTPCommandFactory() {

        public SMTPCommand create(List<String> parameters) {
            return new NOOPCommand();
        }
        
    };

}
